package org.jeecg.modules.carinfo.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.carinfo.entity.CarRegister;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import javax.annotation.Resource;

/**
 * @Description: 车辆登记
 * @Author: jeecg-boot
 * @Date:   2023-11-28
 * @Version: V1.0
 */
@Mapper
public interface CarRegisterMapper extends BaseMapper<CarRegister> {

    @Select("SELECT t.evn_type as 'name' ,COUNT(1) as 'value' FROM car_register t where t.locatin=#{location} GROUP BY t.evn_type")
    public List<Map<String,String>> getCount(String location);

}
